from pydantic import Field, BaseModel, ConfigDict
from pydantic.alias_generators import to_camel


class ChatResult(BaseModel):

    model_config = ConfigDict(alias_generator=to_camel, populate_by_name=True, from_attributes=True)

    type: str = Field("text", alias="type", description="类型")

    conversation_id: str = Field("", alias="conversationId", description="对话框ID")

    message_id: str = Field("", alias="messageId", description="消息ID")

    text: str = Field("", description="消息内容")
